package com.reservoir.system.controller;

import com.reservoir.api.entity.SysOperLog;
import com.reservoir.system.service.OperLogService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author xxx
 * @create 2021-11-03
 */
@Api("日志操作")
@RestController
@RequestMapping("/operLog")
public class SysLogController {
    @Autowired
    private  OperLogService operLogService;

    @PostMapping("/add")
    public void saveLog(@RequestBody SysOperLog operLog)
    {
        operLogService.insertOperLog(operLog);
    }

}
